<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="exporter-version" content="Evernote Mac 9.4.5 (461378)"/><meta name="author" content="704206198@qq.com"/><meta name="created" content="2020-10-25 15:34:43 +0000"/><meta name="source" content="desktop.mac"/><meta name="updated" content="2020-11-04 18:04:03 +0000"/><meta name="content-class" content="yinxiang.markdown"/><title>day14：项目上线</title></head><body><div style="font-size: 14px; margin: 0; padding: 0; width: 100%;"><h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000; margin-top: 14px;">一、购买服务器</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">打开<a href="https://www.aliyun.com/" style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">阿里云官网</a></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">依次选择：产品 -&gt; 弹性计算 -&gt; 云服务器 -&gt; <a href="https://www.aliyun.com/product/ecs" style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">云服务器ECS</a></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">点击 立即购买，选择一键购买，默认配置，使用流量收费，自定义购买时长</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">提交订单，确认下单，付款</p>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">二、重装操作系统</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">依次点击：控制台 -&gt; 产品与服务器 -&gt; 云服务器ECS</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在左侧导航，选择：实例与镜像 -&gt; 实例，打开实例列表</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在实例列表中，根据自身情况，修改 实例名称</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">选中实例后，点击 停止 当前实例</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在右侧 更多选项中，选择云盘和镜像 -&gt; 更换操作系统，点击确定</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在镜像选择中，选择公共镜像 -&gt; CentOS -&gt; 最新版本即可</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">安全设置中，选择自定义密码，设置 自定义密码</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">勾选协议，点击确定订单，回到控制台</p>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">三、配置安全组</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">右侧点击：管理 -&gt; 左侧菜单选择：本实例安全组</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在安全组列表中，点击配置规则</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">点击右侧顶部 回到旧版 后，选择 添加安全组规则</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在打开的弹出框中，端口范围设置为：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">80/80</code>；授权对象设置为：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">0.0.0.0/0</code></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">点击确定</p>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">四、连接服务器</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">点击下载 FinalShell 远程登录工具，安装并打开</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><a href="https://mydown.yesky.com/pcsoft/413551229.html" style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">FinalShell for windows</a></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><a href="http://www.pc6.com/mac/761631.html" style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">FinalShell for mac</a></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">建立服务器连接，填入 服务器公网IP 和 服务器账号密码<br/>
<img src="day14%EF%BC%9A%E9%A1%B9%E7%9B%AE%E4%B8%8A%E7%BA%BF.resources/C9D6ADC8-4FAE-4691-BDD7-75D0D95B4547.png" height="790" width="1292"/><br/>
<img src="day14%EF%BC%9A%E9%A1%B9%E7%9B%AE%E4%B8%8A%E7%BA%BF.resources/9C820460-2EAC-40B1-844C-20BC6E791E55.png" height="1126" width="2432"/></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">双击创建的连接，连接到服务器，如有提示安全问题，接受即可</p>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">五、使用nginx配置服务器</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">nginx介绍</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件（IMAP/POP3）代理服务器，在BSD-like 协议下发行。其特点是占有内存少，并发能力强，事实上nginx的并发能力确实在同类型的网页服务器中表现较好，中国大陆使用nginx网站用户有：百度、京东、新浪、网易、腾讯、淘宝等。</li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">负载均衡、反向代理</li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">yum的介绍</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">yum：是一个可以在 CentOS 中使用的Shell前端软件包管理器。</li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">yum的基本使用
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">下载：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">yum install -y nginx</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">删除：</li>
</ul>
</li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">使用yum安装nginx</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">yum install -y nginx</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在CentOS系统中设置nginx开机自启动</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">systemctl start nginx.service</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">systemctl enable nginx.service</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在浏览器输入公网ID进行测试，出现 <code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">Welcome to nginx</code> 字样表示nginx启动成功</p>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">六、打包项目</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">修改：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">src/tools/index.js</code> 文件中的<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">baseURL</code>为：</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">修改：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">src/main.js</code> 文件中 <code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">Vue.config.productionTip = true</code></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在项目根目录中添加：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">vue.config.js</code> 文件，内容为：</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">module.exports = { publicPath: './' }</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">此项为，将默认打包文件中，引入资源的路径，从 绝对路径 改成 相对路径</li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">此处建议将vue-router的模式改为hash模式</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">终端执行<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">npm run build</code>，进行项目打包</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">打包之后的项目存放在根目录的dist文件夹内</p>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">七、项目上线 - nginx</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">进入 nginx 代码的存放文件夹：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">usr/share/nginx/html</code></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">将打包之后的项目文件夹dist，复制到该目录内</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">浏览器访问：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">http://39.99.196.146/dist</code></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">目前仅仅上传了前端项目，所以暂时看不到数据</p>
</li>
</ol>
<hr style="line-height: 160%; box-sizing: content-box; border-top: 1px solid #eee; margin: 16px 0;"/>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">八、自己搭建node服务器上线项目 - 推荐</h1>
<h3 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 27px; color: #333;">安装node</h3>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">使用yum安装git：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">yum install git</code></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">使用git安装nvm：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">git clone https://github.com/cnpm/nvm.git ~/.nvm &amp;&amp; cd ~/.nvm &amp;&amp; git checkout git describe --abbrev=0 --tags</code></p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">配置nvm的全局命令</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">echo ". ~/.nvm/nvm.sh" &gt;&gt; /etc/profile</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">source /etc/profile</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">nvm的常用操作：</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">查看node可安装版本：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">nvm list-remote</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">安装指定node版本：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">nvm install v12.13.1</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">查看已安装node版本：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">nvm ls</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">切换node版本：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">nvm use 12.13.1</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">查看node版本 和 npm版本</p>
</li>
</ol>
<h3 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 27px; color: #333;">安装mongodb</h3>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">mongodb属于文件类软件包，需要使用<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">wget</code>进行下载</li>
</ul>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">进入local目录</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">cd /usr/local</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">下载文件</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.9.tgz</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">解压文件</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">tar zxvf mongodb-linux-x86_64-4.0.9.tgz</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">删除压缩包</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">rm -rf mongodb-linux-x86_64-4.0.9.tgz</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">重命名文件夹为mongodb</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">mv mongodb-linux-x86_64-4.0.9 mongodb</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在var文件夹里建立mongodb文件夹，并分别建立文件夹data用于存放数据，logs用于存放日志</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">cd /var</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">mkdir mongodb</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">cd mongodb</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">mkdir data logs</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">设置mongodb自启动</p>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box;">进入启动项配置文件所在目录
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">cd /etc/rc.d</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">打开启动项文件<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">rc.local</code></li>
<li style="line-height: 160%; box-sizing: content-box;">将以下代码粘贴到启动项文件中，保存关闭
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">/usr/local/mongodb/bin/mongod --dbpath=/var/mongodb/data --logpath /var/mongodb/logs/log.log -fork</code></li>
</ul>
</li>
</ol>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">启动mongodb</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">cd /usr/local/mongodb/bin</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">./mongod --dbpath=/var/mongodb/data --logpath /var/mongodb/logs/log.log -fork</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">测试mongodb</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">cd /usr/local/mongodb/bin</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">./mongo</code></li>
</ul>
</li>
</ol>
<h3 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 27px; color: #333;">上传后台代码</h3>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">/usr/local/src</code>下创建<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">myadminapp</code>文件夹</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">将后端项目中，除 <code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">node_modules</code> 外的其余代码，直接拖到该文件夹中</p>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">在命令行中</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">使用<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">cd</code>进入该目录</li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">下载项目依赖：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">npm i</code></li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">启动项目：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">npm run dev</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">浏览器输入：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">http://39.99.196.146:3000</code>访问项目</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">如果无法访问网页，在 ecs 服务器 - 安全组 添加 3000 端口，参考nginx的80端口</li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">设置项目管理员账号，登录后台项目后，导入商品数据</p>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">九、设置长链接</h1>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">关闭服务器的远程连接工具后，项目依然可以正常运行</li>
</ul>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">下载长链接工具</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">npm i pm2 -g</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">进入项目目录：</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">cd /usr/local/src/myadminapp</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">通过长链接工具启动项目</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">pm2 start ./bin/www --name=testAdmin</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">关闭长链接服务器</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">pm2 stop all</code></li>
</ul>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">十、配置nginx忽略url的端口号</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">找到nginx的配置文件</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">/etc/nginx/nginx.conf</code><br/>
<img src="day14%EF%BC%9A%E9%A1%B9%E7%9B%AE%E4%B8%8A%E7%BA%BF.resources/E6739623-E19A-48EE-856E-9F3DEE751740.png" height="742" width="1530"/></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">修改为：</p>
</li>
</ol>
<pre style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; margin: 2px 0 8px; background-color: #f5f7f8;"><code style="display: block; overflow-x: auto; background: #1e1e1e; line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; letter-spacing: -.3px; padding: 18px; color: #f4f4f4; white-space: pre-wrap;">location / {
    proxy_pass http://localhost:3000;
}
</code></pre>
<ol start="3" style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">配置更改后，重启nginx</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;"><code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">/sbin/nginx -s reload</code></li>
</ul>
</li>
<li style="line-height: 160%; box-sizing: content-box;">
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">浏览器输入：<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">http://39.99.196.146</code>访问项目</p>
</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">十一、域名解析</h1>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">
<p style="line-height: 160%; box-sizing: content-box; color: #333; margin: 0;">购买域名并备案通过后，可以将域名解析到本服务器，可以使用域名访问项目</p>
</li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">
<p style="line-height: 160%; box-sizing: content-box; color: #333; margin: 0;">在域名解析页面，选择添加解析记录</p>
<ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;">
<li style="line-height: 160%; box-sizing: content-box; position: relative;">主机记录为二级域名</li>
<li style="line-height: 160%; box-sizing: content-box; position: relative;">记录值为服务器的公网IP</li>
</ul>
</li>
</ul>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">十二、修改后台接口配置，准备上传前端项目</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">进入后台项目目录，打开<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">package.json</code></li>
<li style="line-height: 160%; box-sizing: content-box;">修改<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">apidoc</code>字段的<code style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; color: #c1788b; padding: 4px 4px 2px 0; letter-spacing: -.3px;">url</code>值为解析之后的域名地址</li>
<li style="line-height: 160%; box-sizing: content-box;">使用apidoc模块重新生成接口文档</li>
</ol>
<h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000;">十三、上传VUE项目</h1>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">修改vue项目的axios的baseURL为解析之后的域名地址</li>
<li style="line-height: 160%; box-sizing: content-box;">重新进行项目打包</li>
<li style="line-height: 160%; box-sizing: content-box;">将打包好的vue项目拷贝到public文件夹内</li>
<li style="line-height: 160%; box-sizing: content-box;">浏览器即可进行测试</li>
</ol>
</div><center style="display:none !important;visibility:collapse !important;height:0 !important;white-space:nowrap;width:100%;overflow:hidden">%23%20%E4%B8%80%E3%80%81%E8%B4%AD%E4%B9%B0%E6%9C%8D%E5%8A%A1%E5%99%A8%0A1.%20%E6%89%93%E5%BC%80%5B%E9%98%BF%E9%87%8C%E4%BA%91%E5%AE%98%E7%BD%91%5D(https%3A%2F%2Fwww.aliyun.com%2F)%0A%0A2.%20%E4%BE%9D%E6%AC%A1%E9%80%89%E6%8B%A9%EF%BC%9A%E4%BA%A7%E5%93%81%20-%3E%20%E5%BC%B9%E6%80%A7%E8%AE%A1%E7%AE%97%20-%3E%20%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%20-%3E%20%5B%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8ECS%5D(https%3A%2F%2Fwww.aliyun.com%2Fproduct%2Fecs)%0A%0A3.%20%E7%82%B9%E5%87%BB%20%E7%AB%8B%E5%8D%B3%E8%B4%AD%E4%B9%B0%EF%BC%8C%E9%80%89%E6%8B%A9%E4%B8%80%E9%94%AE%E8%B4%AD%E4%B9%B0%EF%BC%8C%E9%BB%98%E8%AE%A4%E9%85%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E4%BE%8B%E5%AE%89%E5%85%A8%E7%BB%84%0A%0A2.%20%E5%9C%A8%E5%AE%89%E5%85%A8%E7%BB%84%E5%88%97%E8%A1%A8%E4%B8%AD%EF%BC%8C%E7%82%B9%E5%87%BB%E9%85%8D%E7%BD%AE%E8%A7%84%E5%88%99%0A%0A3.%20%E7%82%B9%E5%87%BB%E5%8F%B3%E4%BE%A7%E9%A1%B6%E9%83%A8%20%E5%9B%9E%E5%88%B0%E6%97%A7%E7%89%88%20%E5%90%8E%EF%BC%8C%E9%80%89%E6%8B%A9%20%E6%B7%BB%E5%8A%A0%E5%AE%89%E5%85%A8%E7%BB%84%E8%A7%84%E5%88%99%0A%0A4.%20%E5%9C%A8%E6%89%93%E5%BC%80%E7%9A%84%E5%BC%B9%E5%87%BA%E6%A1%86%E4%B8%AD%EF%BC%8C%E7%AB%AF%E5%8F%A3%E8%8C%83%E5%9B%B4%E8%AE%BE%E7%BD%AE%E4%B8%BA%EF%BC%9A%6080%2F80%60%EF%BC%9B%E6%8E%88%E6%9D%83%E5%AF%B9%E8%B1%A1%E8%AE%BE%E7%BD%AE%E4%B8%BA%EF%BC%9A%600.0.0.0%2F0%60%0A%0A5.%20%E7%82%B9%E5%87%BB%E7%A1%AE%E5%AE%9A%0A%0A%0A%23%20%E5%9B%9B%E3%80%81%E8%BF%9E%E6%8E%A5%E6%9C%8D%E5%8A%A1%E5%99%A8%0A1.%20%E7%82%B9%E5%87%BB%E4%B8%8B%E8%BD%BD%20FinalShell%20%E8%BF%9C%E7%A8%8B%E7%99%BB%E5%BD%95%E5%B7%A5%E5%85%B7%EF%BC%8C%E5%AE%89%E8%A3%85%E5%B9%B6%E6%89%93%E5%BC%80%0A%20%20%20%20-%20%5BFinalShell%20for%20windows%5D(https%3A%2F%2Fmydown.yesky.com%2Fpcsoft%2F413551229.html)%0A%20%20%20%20-%20%5BFinalShell%20for%20mac%5D(http%3A%2F%2Fwww.pc6.com%2Fmac%2F761631.html)%0A%0A2.%20%E5%BB%BA%E7%AB%8B%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%BF%9E%E6%8E%A5%EF%BC%8C%E5%A1%AB%E5%85%A5%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%85%AC%E7%BD%91IP%20%E5%92%8C%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%B4%A6%E5%8F%B7%E5%AF%86%E7%A0%81%0A!%5B1bdb26d7ebf8e1faa6e01af9f8344c52.png%5D(evernotecid%3A%2F%2FBB210BE9-3A02-4842-A4C9-7970C5C1E576%2Fappyinxiangcom%2F16639017%2FENResource%2Fp770)%0A!%5Bba8939cba03205947b649e6f3392ab66.png%5D(evernotecid%3A%2F%2FBB210BE9-3A02-4842-A4C9-7970C5C1E576%2Fappyinxiangcom%2F16639017%2FENResource%2Fp771)%0A%0A3.%20%E5%8F%8C%E5%87%BB%E5%88%9B%E5%BB%BA%E7%9A%84%E8%BF%9E%E6%8E%A5%EF%BC%8C%E8%BF%9E%E6%8E%A5%E5%88%B0%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%8C%E5%A6%82%E6%9C%89%E6%8F%90%E7%A4%BA%E5%AE%89%E5%85%A8%E9%97%AE%E9%A2%98%EF%BC%8C%E6%8E%A5%E5%8F%97%E5%8D%B3%E5%8F%AF%0A%0A%23%20%E4%BA%94%E3%80%81%E4%BD%BF%E7%94%A8nginx%E9%85%8D%E7%BD%AE%E6%9C%8D%E5%8A%A1%E5%99%A8%0A1.%20nginx%E4%BB%8B%E7%BB%8D%0A%20%20%20%20-%20Nginx%E6%98%AF%E4%B8%80%E6%AC%BE%E8%BD%BB%E9%87%8F%E7%BA%A7%E7%9A%84Web%20%E6%9C%8D%E5%8A%A1%E5%99%A8%2F%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%8F%8A%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%EF%BC%88IMAP%2FPOP3%EF%BC%89%E4%BB%A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A1%E7%90%86%E5%99%A8%E3%80%82%0A%20%20%20%20-%20yum%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8%0A%20%20%20%20%20%20%20%20-%20%E4%B8%8B%E8%BD%BD%EF%BC%9A%60yum%20install%20-y%20nginx%60%0A%20%20%20%20%20%20%20%20-%20%E5%88%A0%E9%99%A4%EF%BC%9A%0A%0A3.%20%E4%BD%BF%E7%94%A8yum%E5%AE%89%E8%A3%85nginx%0A%20%20%20%20-%20%60yum%20install%20-y%20nginx%60%0A%0A4.%20%E5%9C%A8CentOS%E7%B3%BB%E7%BB%9F%E4%B8%AD%E8%AE%BE%E7%BD%AEnginx%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E5%8A%A8%0A%20%20%20%20-%20%60systemctl%20start%20nginx.service%60%0A%20%20%20%20-%20%60systemctl%20enable%20nginx.service%60%0A%0A5.%20%E5%9C%A8%E6%B5%8F%E8%A7%88%E5%99%A8%E8%BE%93%E5%85%A5%E5%85%AC%E7%BD%91ID%E8%BF%9B%E8%A1%8C%E6%B5%8B%E8%AF%95%EF%BC%8C%E5%87%BA%E7%8E%B0%20%60Welcome%20to%20nginx%60%20%E5%AD%97%E6%A0%B7%E8%A1%A8%E7%A4%BAnginx%E5%90%AF%E5%8A%A8%E6%88%90%E5%8A%9F%0A%0A%23%20%E5%85%AD%E3%80%81%E6%89%93%E5%8C%85%E9%A1%B9%E7%9B%AE%0A1.%20%E4%BF%AE%E6%94%B9%EF%BC%9A%60src%2Ftools%2Findex.js%60%20%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%60baseURL%60%E4%B8%BA%EF%BC%9A%0A%0A2.%20%E4%BF%AE%E6%94%B9%EF%BC%9A%60src%2Fmain.js%60%20%E6%96%87%E4%BB%B6%E4%B8%AD%20%60Vue.config.productionTip%20%3D%20true%60%0A%0A3.%20%E5%9C%A8%E9%A1%B9%E7%9B%AE%E6%A0%B9%E7%9B%AE%E5%BD%95%E4%B8%AD%E6%B7%BB%E5%8A%A0%EF%BC%9A%60vue.config.js%60%20%E6%96%87%E4%BB%B6%EF%BC%8C%E5%86%85%E5%AE%B9%E4%B8%BA%EF%BC%9A%0A%20%20%20%20-%20%60module.exports%20%3D%20%7B%20publicPath%3A%20'.%2F'%20%7D%60%0A%20%20%20%20-%20%E6%AD%A4%E9%A1%B9%E4%B8%BA%EF%BC%8C%E5%B0%86%E9%BB%98%E8%AE%A4%E6%89%93%E5%8C%85%E6%96%87%E4%BB%B6%E4%B8%AD%EF%BC%8C%E5%BC%95%E5%85%A5%E8%B5%84%E6%BA%90%E7%9A%84%E8%B7%AF%E5%BE%84%EF%BC%8C%E4%BB%8E%20%E7%BB%9D%E5%AF%B9%E8%B7%AF%E5%BE%84%20%E6%94%B9%E6%88%90%20%E7%9B%B8%E5%AF%B9%E8%B7%AF%E5%BE%84%0A%0A4.%20%E6%AD%A4%E5%A4%84%E5%BB%BA%E8%AE%AE%E5%B0%86vue-router%E7%9A%84%E6%A8%A1%E5%BC%8F%E6%94%B9%E4%B8%BAhash%E6%A8%A1%E5%BC%8F%0A%0A5.%20%E7%BB%88%E7%AB%AF%E6%89%A7%E8%A1%8C%60npm%20run%20build%60%EF%BC%8C%E8%BF%9B%E8%A1%8C%E9%A1%B9%E7%9B%AE%E6%89%93%E5%8C%85%0A%0A6.%20%E6%89%93%E5%8C%85%E4%B9%8B%E5%90%8E%E7%9A%84%E9%A1%B9%E7%9B%AE%E5%AD%98%E6%94%BE%E5%9C%A8%E6%A0%B9%E7%9B%AE%E5%BD%95%E7%9A%84dist%E6%96%87%E4%BB%B6%E5%A4%B9%E5%86%85%0A%0A%23%20%E4%B8%83%E3%80%81%E9%A1%B9%E7%9B%AE%E4%B8%8A%E7%BA%BF%20-%20nginx%0A1.%20%E8%BF%9B%E5%85%A5%20nginx%20%E4%BB%A3%E7%A0%81%E7%9A%84%E5%AD%98%E6%94%BE%E6%96%87%E4%BB%B6%E5%A4%B9%EF%BC%9A%60usr%2Fshare%2Fnginx%2Fhtml%60%0A%0A2.%20%E5%B0%86%E6%89%93%E5%8C%85%E4%B9%8B%E5%90%8E%E7%9A%84%E9%A1%B9%E7%9B%AE%E6%96%87%E4%BB%B6%E5%A4%B9dist%EF%BC%8C%E5%A4%8D%E5%88%B6%E5%88%B0%E8%AF%A5%E7%9B%AE%E5%BD%95%E5%86%85%0A%0A3.%20%E6%B5%8F%E8%A7%88%E5%99%A8%E8%AE%BF%E9%97%AE%EF%BC%9A%60http%3A%2F%2F39.99.196.146%2Fdist%60%0A%0A4.%20%E7%9B%AE%E5%89%8D%E4%BB%85%E4%BB%85%E4%B8%8A%E4%BC%A0%E4%BA%86%E5%89%8D%E7%AB%AF%E9%A1%B9%E7%9B%AE%EF%BC%8C%E6%89%80%E4%BB%A5%E6%9A%82%E6%97%B6%E7%9C%8B%E4%B8%8D%E5%88%B0%E6%95%B0%E6%8D%AE%0A%0A%0A---%0A%0A%0A%23%20%E5%85%AB%E3%80%81%E8%87%AA%E5%B7%B1%E6%90%AD%E5%BB%BAnode%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%BA%BF%E9%A1%B9%E7%9B%AE%20-%20%E6%8E%A8%E8%8D%90%0A%23%23%23%20%E5%AE%89%E8%A3%85node%0A1.%20%E4%BD%BF%E7%94%A8yum%E5%AE%89%E8%A3%85git%EF%BC%9A%60yum%20install%20git%60%0A%0A2.%20%E4%BD%BF%E7%94%A8git%E5%AE%89%E8%A3%85nvm%EF%BC%9A%60git%20clone%20https%3A%2F%2Fgithub.com%2Fcnpm%2Fnvm.git%20~%2F.nvm%20%26%26%20cd%20~%2F.nvm%20%26%26%20git%20checkout%20git%20describe%20--abbrev%3D0%20--tags%60%0A%0A3.%20%E9%85%8D%E7%BD%AEnvm%E7%9A%84%E5%85%A8%E5%B1%80%E5%91%BD%E4%BB%A4%0A%20%20%20%20-%20%60echo%20%22.%20~%2F.nvm%2Fnvm.sh%22%20%3E%3E%20%2Fetc%2Fprofile%60%0A%20%20%20%20-%20%60source%20%2Fetc%2Fprofile%60%0A%0A4.%20nvm%E7%9A%84%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C%EF%BC%9A%0A%20%20%20%20-%20%E6%9F%A5%E7%9C%8Bnode%E5%8F%AF%E5%AE%89%E8%A3%85%E7%89%88%E6%9C%AC%EF%BC%9A%60nvm%20list-remote%60%0A%20%20%20%20-%20%E5%AE%89%E8%A3%85%E6%8C%87%E5%AE%9Anode%E7%89%88%E6%9C%AC%EF%BC%9A%60nvm%20install%20v12.13.1%60%0A%20%20%20%20-%20%E6%9F%A5%E7%9C%8B%E5%B7%B2%E5%AE%89%E8%A3%85node%E7%89%88%E6%9C%AC%EF%BC%9A%60nvm%20ls%60%0A%20%20%20%20-%20%E5%88%87%E6%8D%A2node%E7%89%88%E6%9C%AC%EF%BC%9A%60nvm%20use%2012.13.1%60%0A%0A5.%20%E6%9F%A5%E7%9C%8Bnode%E7%89%88%E6%9C%AC%20%E5%92%8C%20npm%E7%89%88%E6%9C%AC%0A%0A%0A%23%23%23%20%E5%AE%89%E8%A3%85mongodb%0A-%20mongodb%E5%B1%9E%E4%BA%8E%E6%96%87%E4%BB%B6%E7%B1%BB%E8%BD%AF%E4%BB%B6%E5%8C%85%EF%BC%8C%E9%9C%80%E8%A6%81%E4%BD%BF%E7%94%A8%60wget%60%E8%BF%9B%E8%A1%8C%E4%B8%8B%E8%BD%BD%0A%0A1.%20%E8%BF%9B%E5%85%A5local%E7%9B%AE%E5%BD%95%0A%20%20%20%20-%20%60cd%20%2Fusr%2Flocal%60%0A%0A2.%20%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6%0A%20%20%20%20-%20%60wget%20http%3A%2F%2Ffastdl.mongodb.org%2Flinux%2Fmongodb-linux-x86_64-4.0.9.tgz%60%0A%0A3.%20%E8%A7%A3%E5%8E%8B%E6%96%87%E4%BB%B6%0A%20%20%20%20-%20%60tar%20zxvf%20mongodb-linux-x86_64-4.0.9.tgz%60%0A%0A4.%20%E5%88%A0%E9%99%A4%E5%8E%8B%E7%BC%A9%E5%8C%85%0A%20%20%20%20-%20%60rm%20-rf%20mongodb-linux-x86_64-4.0.9.tgz%60%0A%0A5.%20%E9%87%8D%E5%91%BD%E5%90%8D%E6%96%87%E4%BB%B6%E5%A4%B9%E4%B8%BAmongodb%0A%20%20%20%20-%20%60mv%20mongodb-linux-x86_64-4.0.9%20mongodb%60%0A%0A6.%20%E5%9C%A8var%E6%96%87%E4%BB%B6%E5%A4%B9%E9%87%8C%E5%BB%BA%E7%AB%8Bmongodb%E6%96%87%E4%BB%B6%E5%A4%B9%EF%BC%8C%E5%B9%B6%E5%88%86%E5%88%AB%E5%BB%BA%E7%AB%8B%E6%96%87%E4%BB%B6%E5%A4%B9data%E7%94%A8%E4%BA%8E%E5%AD%98%E6%94%BE%E6%95%B0%E6%8D%AE%EF%BC%8Clogs%E7%94%A8%E4%BA%8E%E5%AD%98%E6%94%BE%E6%97%A5%E5%BF%97%0A%20%20%20%20-%20%60cd%20%2Fvar%60%0A%20%20%20%20-%20%60mkdir%20mongodb%60%0A%20%20%20%20-%20%60cd%20mongodb%60%0A%20%20%20%20-%20%60mkdir%20data%20logs%60%0A%0A7.%20%E8%AE%BE%E7%BD%AEmongodb%E8%87%AA%E5%90%AF%E5%8A%A8%0A%20%20%20%201.%20%E8%BF%9B%E5%85%A5%E5%90%AF%E5%8A%A8%E9%A1%B9%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E6%89%80%E5%9C%A8%E7%9B%AE%E5%BD%95%0A%20%20%20%20%20%20%20%20-%20%60cd%20%2Fetc%2Frc.d%60%0A%20%20%20%202.%20%E6%89%93%E5%BC%80%E5%90%AF%E5%8A%A8%E9%A1%B9%E6%96%87%E4%BB%B6%60rc.local%60%0A%20%20%20%203.%20%E5%B0%86%E4%BB%A5%E4%B8%8B%E4%BB%A3%E7%A0%81%E7%B2%98%E8%B4%B4%E5%88%B0%E5%90%AF%E5%8A%A8%E9%A1%B9%E6%96%87%E4%BB%B6%E4%B8%AD%EF%BC%8C%E4%BF%9D%E5%AD%98%E5%85%B3%E9%97%AD%0A%20%20%20%20%20%20%20%20-%20%60%2Fusr%2Flocal%2Fmongodb%2Fbin%2Fmongod%20--dbpath%3D%2Fvar%2Fmongodb%2Fdata%20--logpath%20%2Fvar%2Fmongodb%2Flogs%2Flog.log%20-fork%60%0A%0A8.%20%E5%90%AF%E5%8A%A8mongodb%0A%20%20%20%20-%20%60cd%20%2Fusr%2Flocal%2Fmongodb%2Fbin%60%0A%20%20%20%20-%20%60.%2Fmongod%20--dbpath%3D%2Fvar%2Fmongodb%2Fdata%20--logpath%20%2Fvar%2Fmongodb%2Flogs%2Flog.log%20-fork%60%0A%0A9.%20%E6%B5%8B%E8%AF%95mongodb%0A%20%20%20%20-%20%60cd%20%2Fusr%2Flocal%2Fmongodb%2Fbin%60%0A%20%20%20%20-%20%60.%2Fmongo%60%0A%0A%23%23%23%20%E4%B8%8A%E4%BC%A0%E5%90%8E%E5%8F%B0%E4%BB%A3%E7%A0%81%0A1.%20%E5%9C%A8%60%2Fusr%2Flocal%2Fsrc%60%E4%B8%8B%E5%88%9B%E5%BB%BA%60myadminapp%60%E6%96%87%E4%BB%B6%E5%A4%B9%0A%0A2.%20%E5%B0%86%E5%90%8E%E7%AB%AF%E9%A1%B9%E7%9B%AE%E4%B8%AD%EF%BC%8C%E9%99%A4%20%60node_modules%60%20%E5%A4%96%E7%9A%84%E5%85%B6%E4%BD%99%E4%BB%A3%E7%A0%81%EF%BC%8C%E7%9B%B4%E6%8E%A5%E6%8B%96%E5%88%B0%E8%AF%A5%E6%96%87%E4%BB%B6%E5%A4%B9%E4%B8%AD%0A%0A3.%20%E5%9C%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%AD%0A%20%20%20%20-%20%E4%BD%BF%E7%94%A8%60cd%60%E8%BF%9B%E5%85%A5%E8%AF%A5%E7%9B%AE%E5%BD%95%0A%20%20%20%20-%20%E4%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.%20%E4%B8%8B%E8%BD%BD%E9%95%BF%E9%93%BE%E6%8E%A5%E5%B7%A5%E5%85%B7%0A%20%20%20%20-%20%60npm%20i%20pm2%20-g%60%0A%0A2.%20%E8%BF%9B%E5%85%A5%E9%A1%B9%E7%9B%AE%E7%9B%AE%E5%BD%95%EF%BC%9A%0A%20%20%20%20-%20%60cd%20%2Fusr%2Flocal%2Fsrc%2Fmyadminapp%60%0A%0A3.%20%E9%80%9A%E8%BF%87%E9%95%BF%E9%93%BE%E6%8E%A5%E5%B7%A5%E5%85%B7%E5%90%AF%E5%8A%A8%E9%A1%B9%E7%9B%AE%0A%20%20%20%20-%20%60pm2%20start%20.%2Fbin%2Fwww%20--name%3DtestAdmin%60%0A%0A4.%20%E5%85%B3%E9%97%AD%E9%95%BF%E9%93%BE%E6%8E%A5%E6%9C%8D%E5%8A%A1%E5%99%A8%0A%20%20%20%20-%20%60pm2%20stop%20all%60%0A%0A%0A%23%20%E5%8D%81%E3%80%81%E9%85%8D%E7%BD%AEnginx%E5%BF%BD%E7%95%A5url%E7%9A%84%E7%AB%AF%E5%8F%A3%E5%8F%B7%0A1.%20%E6%89%BE%E5%88%B0nginx%E7%9A%84%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%0A%20%20%20%20-%20%60%2Fetc%2Fnginx%2Fnginx.conf%60%0A%20%20%20%20!%5B28ca0641440d49bc6b4ca23ac8e8bba1.png%5D(evernotecid%3A%2F%2FBB210BE9-3A02-4842-A4C9-7970C5C1E576%2Fappyinxiangcom%2F16639017%2FENResource%2Fp772)%0A%0A2.%20%E4%BF%AE%E6%94%B9%E4%B8%BA%EF%BC%9A%0A%60%60%60%0Alocation%20%2F%20%7B%0A%20%20%20%20proxy_pass%20http%3A%2F%2Flocalhost%3A3000%3B%0A%7D%0A%60%60%60%0A%0A3.%20%E9%85%8D%E7%BD%AE%E6%9B%B4%E6%94%B9%E5%90%8E%EF%BC%8C%E9%87%8D%E5%90%AFnginx%0A%20%20%20%20-%20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%E7%9B%AE%0A1.%20%E8%BF%9B%E5%85%A5%E5%90%8E%E5%8F%B0%E9%A1%B9%E7%9B%AE%E7%9B%AE%E5%BD%95%EF%BC%8C%E6%89%93%E5%BC%80%60package.json%60%0A2.%20%E4%BF%AE%E6%94%B9%60apidoc%60%E5%AD%97%E6%AE%B5%E7%9A%84%60url%60%E5%80%BC%E4%B8%BA%E8%A7%A3%E6%9E%90%E4%B9%8B%E5%90%8E%E7%9A%84%E5%9F%9F%E5%90%8D%E5%9C%B0%E5%9D%80%0A3.%20%E4%BD%BF%E7%94%A8apidoc%E6%A8%A1%E5%9D%97%E9%87%8D%E6%96%B0%E7%94%9F%E6%88%90%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3%0A%0A%0A%23%20%E5%8D%81%E4%B8%89%E3%80%81%E4%B8%8A%E4%BC%A0VUE%E9%A1%B9%E7%9B%AE%0A1.%20%E4%BF%AE%E6%94%B9vue%E9%A1%B9%E7%9B%AE%E7%9A%84axios%E7%9A%84baseURL%E4%B8%BA%E8%A7%A3%E6%9E%90%E4%B9%8B%E5%90%8E%E7%9A%84%E5%9F%9F%E5%90%8D%E5%9C%B0%E5%9D%80%0A2.%20%E9%87%8D%E6%96%B0%E8%BF%9B%E8%A1%8C%E9%A1%B9%E7%9B%AE%E6%89%93%E5%8C%85%0A3.%20%E5%B0%86%E6%89%93%E5%8C%85%E5%A5%BD%E7%9A%84vue%E9%A1%B9%E7%9B%AE%E6%8B%B7%E8%B4%9D%E5%88%B0public%E6%96%87%E4%BB%B6%E5%A4%B9%E5%86%85%0A4.%20%E6%B5%8F%E8%A7%88%E5%99%A8%E5%8D%B3%E5%8F%AF%E8%BF%9B%E8%A1%8C%E6%B5%8B%E8%AF%95</center></body></html>